package com.shop.admin.controller;

import com.shop.admin.service.ShopAdminService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Api(tags = {"LoginController"},description = "零食登录接口")
@RestController
@RequestMapping("/api")
public class LoginController {

    @Autowired
    ShopAdminService shopAdminService;


    @PostMapping("/AdminLogin")
    public Object AdminLogin(@RequestBody Map<String, String> map) {
        return shopAdminService.AdminLogin(map);
    }

}